<script>
let done;
function loadScript(url) {
  return new Promise((resolve) => {
    // This "done" function will be called from the script.
    done = resolve;
    let script = document.createElement("script");
    script.charset= 'UTF-8';
    script.src = url;
    document.body.appendChild(script);
  });
}
</script>
